//引入less
require("./ad.less");
//引入animate
require("../../libs/animate/animate.min.css");

//页面加载事件
window.addEventListener("DOMContentLoaded", function () {
	let timeLeft = 5;
	const secondsNode = document.querySelector(".seconds");
	this.window.setInterval(function () {
		timeLeft--;
		secondsNode.textContent = timeLeft;
		if (timeLeft === 0) {
			location.href = "login.html";
		}
	}, 1000);
});
